# -*- coding: utf-8 -*-
# @Author : HaleShi
# @Time : 2023-06-21
# @File : 6_测试_sign.py


'''
aee4c425dbb2288b80c71347cc37d04bapp_name=achievo_ad&app_version=7.83.3&channel=oziq7dxw:::&device=Pixel 2 XL&device_token=cef3f807-c9fc-3ceb-a818
-74ad1ecd48aa&manufacturer=Google&os_version=29&regPlat=0&regid=null&rom=Dalvik/2.1.0 (Linux; U; Android 10; Pixel 2 XL Build/QQ3A.200805.001)&sk
ey=6692c461c3810ab150c9a980d0c275ec&status=1&vipruid=&warehouse=VIP_NH
c9d47ec7549d2eb220f133e5c656429a5fbf0876
'''

import hashlib

data_string ="aee4c425dbb2288b80c71347cc37d04bapp_name=achievo_ad&app_version=7.83.3&channel=oziq7dxw:::&device=Pixel 2 XL&device_token=cef3f807-c9fc-3ceb-a818-74ad1ecd48aa&manufacturer=Google&os_version=29&regPlat=0&regid=null&rom=Dalvik/2.1.0 (Linux; U; Android 10; Pixel 2 XL Build/QQ3A.200805.001)&skey=6692c461c3810ab150c9a980d0c275ec&status=1&vipruid=&warehouse=VIP_NH"

# sha1加密
hash_object = hashlib.sha1()
hash_object.update(data_string.encode('utf-8'))
arg7 = hash_object.hexdigest()
print(arg7)

x = "aee4c425dbb2288b80c71347cc37d04b"+arg7
# sha1加密
hash_object = hashlib.sha1()
hash_object.update(x.encode('utf-8'))
arg7 = hash_object.hexdigest()
print(arg7)

# c9d47ec7549d2eb220f133e5c656429a5fbf0876